<template>
  <div id="app">
    <Header/>
    <router-view></router-view>
    <Footer v-show="curRouter != 'index'" />
  </div>
</template>

<script>
import Header from "@/components/header";
import Footer from "@/components/footer";
export default {
  components: {
    Header,
    Footer
  },
  data() {
    return {
      curRouter: "index"
    };
  },
  watch: {
    $route() {
      console.log(this.$route.name);
      this.curRouter = this.$route.name;
    }
  }
};
</script>

<style>
#app {
  font-family: "微软雅黑", "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  color: #2c3e50;
}
* {
  margin: 0;
  padding: 0;
}
a {
  color: #333333;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
ul,
li {
  list-style: none;
}
.clear {
  clear: both;
}
.auto {
  margin: auto;
}
.width {
  width: 1200px;
}
@media (max-width: 1200px) {
  .width {
    width: 96%;
  }
}
.WidthPer {
  width: 100%;
}
.HeightPer {
  height: 100%;
}
.navbar {
  padding: 0;
}
.navbar .navbar-brand {
  padding: 0;
}
@media (max-width: 767px) {
  #Banner {
    padding-top: 0px;
  }
}
#Banner {
  padding-top: 67px;
}
</style>
